package Model;

public class Emp {

    private Integer empId;
    private String name;
    private String sex;
    private Integer age;
    private String job;

    public Emp(Integer empId, String name, String sex, Integer age, String job) {
        this.empId = empId;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.job = job;

    }

    public Emp(String job) {
        this.job = job;
    }

    public Emp() {

    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", job='" + job + '\'' +
                '}';
    }
}
